<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>会员管理 - 下属CEO业绩</title>
<?php include($this->c['_homes']['_viewsHome'].'/_global/_head.php');?>
</head>
<!-- BEGIN BODY -->
<body class="page-header-fixed page-sidebar-fixed">
<!-- BEGIN HEADER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/head.php');?>
<!-- END HEADER -->
<div class="clearfix"></div>
<!-- BEGIN CONTAINER -->
<div class="page-container" > 
  <!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
  <?php include($this->c['_homes']['_viewsHome'].'/_global/menu.php');?>
  <!-- END BEGIN HORIZONTAL MENU PAGE SIDEBAR --> 
  <!-- BEGIN PAGE -->
  <div class="page-content"> 
    <!-- BEGIN PAGE HEADER-->
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title"> 业绩考核 </h3>
        <ul class="page-breadcrumb breadcrumb">        	
          <li> <i class="icon-home"></i> <a href="/manage">后台</a> <i class="icon-angle-right"></i> </li>
          <li> 会员管理 <i class="icon-angle-right"></i> </li>
          <li> <a href="/member/memberlist">会员列表</a> <i class="icon-angle-right"></i> </li>
          <li><strong>[<?=$this->user['uid'];?>] <?=$this->user['nickname'];?></strong> 的业绩考核 <i class="icon-angle-right"></i> </li>
          <li>下属CEO<strong><?=substr($_GET['month'],0,7);?></strong>业绩</li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB--> 
      </div>
    </div>
    <!-- END PAGE HEADER--> 
    <!-- BEGIN PAGE CONTENT-->    
    <div class="row">
      <div class="col-md-12"> 
        <!-- BEGIN SAMPLE TABLE PORTLET-->                  
        <div class="portlet box blue">
          <div class="portlet-title">
            <div class="caption"><i class="icon-list"></i>列表(<?=count($this->data['data']);?>)</div>
            <div class="tools"> <a href="javascript:;" class="collapse"></a> </div>
          </div>
          <div class="portlet-body">
            <div class="table-scrollable">
             <table class="table table-striped table-bordered table-hover dataTable">
              <thead>
                <tr>
                  <th>流水号</th>
                  <th>头像</th>
                  <th>昵称/姓名</th>
                  <th>目标金额</th>
                  <th>完成金额</th>
                  <th>完成百分比</th>
                  <th>团队奖金</th>
                  <th>级别</th>        
                </tr>
              </thead>
 <tbody>
              <?php
			if($this->data['data'])
			{				
				
				foreach($this->data['data'] as $k=> $r){	
				
					if($this->data['user'][$r['uid']]['headimgurl']=="") $r['headimgurl'] = '/style/assets/img/avatar.png';
            					else $r['headimgurl'] = str_replace("/0","/64",$this->data['user'][$r['uid']]['headimgurl']);	
								
								$total+= $r['num'];
									
																
			?>
                <tr>
                  <td><?=$r['logid'];?></td>
                  <td><img src="<?=$r['headimgurl'];?>" width="45" height="45"></td>
                  <td><?php echo stripslashes($this->data['user'][$r['uid']]['nickname']);
                  if($this->data['user'][$r['uid']]['realname']!="") echo '<br>(<strong>'.$this->data['user'][$r['uid']]['realname'].'</strong>)';
                  ?></td>
                  <td><?=$r['grade_num'];?></td>
                  <td><?=$r['num'];?></td>
                  <td><?=$r['precent']*100;?>%</td>
                  <td><?=$r['bonus_num'];?></td>
                  <td><?=$this->grade[$r['member_gradeid']];?></td>                  
                </tr>
                <?
					}
					?>
                    <tr>
                    <td colspan="8"><h5><strong>业绩合计</strong>：<?=$total;?></h5></td>
                    </tr>
                    <?
				}
				?>
				 </tbody>                                
            </table>
            </div>
          </div>
        </div>        
        <!-- END SAMPLE TABLE PORTLET--> 
      </div>
    </div>
    <!-- END PAGE CONTENT--> 
  </div>
  <!-- END PAGE --> 
</div>
<!-- END CONTAINER -->
<?php include($this->c['_homes']['_viewsHome'].'/_global/_footer.php');?>
<script>
		jQuery(document).ready(function() {    
		   App.init();
		});
	</script> 
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>